package com.cskt.service;

import com.cskt.dao.smbmsMapper;
import com.cskt.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 曾小丽 on 2018/3/27.
 */

@Service
public class userServiceImpl implements userService {

    @Autowired
    private smbmsMapper s;

    @Override
    public List<User> getAllInfo(String name, Integer index, Integer Count) {
        return s.getAllInfo(name,(index-1)*Count,Count);
    }

    @Override
    public List<User> getAllInfoByName(String name, Integer index, Integer Count) {
        return s.getAllInfoByName(name,(index-1)*Count,Count);
    }

    @Override
    public Integer Add(User user) {
        return s.Add(user);
    }

    @Override
    public Integer Del(String uid) {
        return s.Del(uid);
    }

    @Override
    public Integer Update(User user) {
        return s.Update(user);
    }

    @Override
    public Integer zs() {
        return s.zs();
    }

}
